import { GET, POST } from '@/utils'

enum API {
    GET_USER_DATA_API = '/selectNurse',
    ADD_USER_DATA_API = '/addWebNurse',
    UPDATE_USER_DATA_API = '/updateNurse',
    DELETE_USER_DATA_API = '/deleteNurse',

    DOWNLOAD_MODEL_API = '/downloadNurseModel',
    UPLOAD_MODEL_API = '/uploadNurse',
}


export const getUserDataApi = (data: any) => POST(API.GET_USER_DATA_API, data, false)
export const addUserDataApi = (data: any) => POST(API.ADD_USER_DATA_API, data, false)
export const updateUserDataApi = (data: any) => POST(API.UPDATE_USER_DATA_API, data, false)
export const delUserDataApi = (data: any) => POST(API.DELETE_USER_DATA_API, data, false)
export const downloadModelApi = () => GET(API.DOWNLOAD_MODEL_API)
export const uploadModelApi = (data: any) => POST(API.UPLOAD_MODEL_API, data, false)